Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unused procedure and middleware #1025

Merged
merged 1 commit into from
Jan 25, 2025
Merged

Conversation

harishv7
Copy link
Contributor

@harishv7 harishv7 commented Jan 23, 2025

TL;DR

Removed unused nonStrictAuthMiddleware and agnosticProcedure from the tRPC configuration.

What changed?

  • Removed the nonStrictAuthMiddleware middleware function that was handling cases where users were deleted but had active sessions
  • Removed the agnosticProcedure export that utilized the removed middleware

How to test?

  1. Verify that all existing authentication flows continue to work
  2. Confirm that no routes were depending on the agnosticProcedure
  3. Test user authentication

Why make this change?

The nonStrictAuthMiddleware and agnosticProcedure were not being used in the application, making them unnecessary code that could cause confusion. Removing unused code improves maintainability and reduces the potential for security issues from unused authentication paths.

@harishv7 harishv7 requested a review from a team as a code owner January 23, 2025 16:20
@datadog-opengovsg
Copy link

datadog-opengovsg bot commented Jan 23, 2025

Datadog Report

Branch report: chore/remove-unused-procedure
Commit report: 40e1892
Test service: isomer-studio

✅ 0 Failed, 261 Passed, 36 Skipped, 49.1s Total Time
➡️ Test Sessions change in coverage: 1 no change

@harishv7 harishv7 merged commit 4e685d1 into main Jan 25, 2025
17 checks passed
@harishv7 harishv7 deleted the chore/remove-unused-procedure branch January 25, 2025 12:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants